from django.db import models
from formstates_wjContact.computers.models import Computer
from formstates_wjContact.contacts.models import Recipient


class Sale(models.Model):
    computer = models.ForeignKey(Computer)
    recipient = models.ForeignKey(Recipient)
    
    def __str__(self):
        return "Computer %s sold to %s" % (self.computer, self.recipient)
    
    class Admin:
        pass
